package com.deschen.security.core.validate.code.image;

import com.deschen.security.core.validate.code.ValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @Author deschen
 * @Create 2019/8/17
 * @Description
 * @Since 1.0.0
 */
@Data
public class ImageValidateCode extends ValidateCode {

    private BufferedImage image;  // 图片验证码特有的

    public ImageValidateCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code, expireTime);
        this.image = image;

    }

    public ImageValidateCode(BufferedImage image, String code, Long expireIn) {
        super(code, expireIn);
        this.image = image;
    }


}
